package com.easylinkin.linkappapi.quality.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.quality.entity.ProblemType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 问题类别 Mapper 接口
 * </p>
 *
 * @author kanyuanfeng
 * @since 2022-08-01
 */
public interface ProblemTypeMapper extends BaseMapper<ProblemType> {

  IPage<ProblemType> queryListByPage(Page page, ProblemType problemType);

    void updateByTypeNameChange(@Param("parentId") Integer parentId, @Param("len") int len, @Param("newNameBefore") String newNameBefore);

    void updateOfSync(@Param("needUpdateIds") List<Integer> needUpdateIds);
}
